<?php

namespace app\yunda\validate;
use think\Validate;
class Sign extends Validate
{
    //定义验证规则
    protected $rule = [
        'config_name|连续签到天数' => 'require|regex:^[1-9]\d{0,9}$|unique:yd_system',
        'config_value|获得积分' => 'require|regex:^[1-9]\d{0,9}$',
    ];

    //定义验证提示
    protected $message = [
        'config_name.regex' => '请填写大于0的整数',
        'config_value.regex' => '请填写大于0的整数',

    ];

    protected $scene=[
//        'edit'=>['config_value'=>'require',],
    ];

}
